package net.cyan.arachne;

import net.cyan.commons.util.MessageException;

import java.util.Map;

/**
 * @author camel
 * @date 2008-11-15
 */
public class ComponentMessageException extends MessageException
{
    private String component;

    public ComponentMessageException(String message, String component)
    {
        super(message);
        this.component = component;
    }

    public ComponentMessageException(String message, String component, Object[] args)
    {
        super(message, args);
        this.component = component;
    }

    public ComponentMessageException(String message, String component, Map<?, ?> args)
    {
        super(message, args);
        this.component = component;
    }

    public String getComponent()
    {
        return component;
    }
}
